﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace craigsPack
{
    /// <summary>
    /// Represents search settings used for searching craigslist
    /// </summary>
    public sealed class CraigsListProviderSettings 
    {
        public CraigsListProviderSettings()
        {
            MaxPages = 10;
            MaxReturns = 100;
            EmptyCache = true;
            CacheLimit = 200;
        }
        /// <summary>
        /// Gets and Sets the maximum number pages the provider will search
        /// </summary>
        public int MaxPages { get; set; }
        /// <summary>
        /// Gets and Sets the maximum results allowed to be stored in one search
        /// </summary>
        public int MaxReturns { get; set; }
        /// <summary>
        /// Gets and Sets whether to empty the cache for every search
        /// </summary>
        public bool EmptyCache { get; set; }
        /// <summary>
        /// Gets and Sets the maximum capcity of the cache
        /// </summary>
        /// <remarks>Cannot exceed the limit 1000</remarks>
        public int CacheLimit { get; set; }
    }
}
